<p style="color: green"><%= notice %></p>
<div class="content">
  <%= render @post %>

  <div class="actions">
    <%= link_to "Edit this post", edit_post_path(@post) %> |
    <%= link_to "Back to posts", posts_path %>

    <%= button_to "Destroy this post", @post, method: :delete %>
  </div>
<div>
<style>
  /* 通用样式 */
  body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #2d3436;
  }

  /* 页面布局 */
  #showBlog {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
  }

  .content {
    flex: 1;
    margin-right: 20px;
  }

  .content h1 {
    margin-top: 0;
    font-size: 32px;
    font-weight: bold;
    color: #343a40;
  }

  .content p {
    line-height: 1.5;
    color: #6c757d;
    font-size: 16px;
  }

  .actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
  }

  .actions a, .actions input[type="submit"] {
    margin-bottom: 10px;
    padding: 10px 20px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
  }

  .actions a:hover, .actions input[type="submit"]:hover {
    background-color: #0062cc;
  }

  .actions input[type="submit"] {
    background-color: #dc3545;
  }

  .actions input[type="submit"]:hover {
    background-color: #c82333;
  }

  form[action][method] {
    display: inline-block;
  }

  /* 流星雨特效 */
  .meteor {
    position: absolute;
    width: 2px;
    height: 20px;
    background-color: #fff;
    animation: meteor 1s linear infinite;
    opacity: 0;
  }

  .meteor:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
  }

  .meteor:nth-child(2) {
    top: 20%;
    left: 20%;
    animation-delay: 1s;
  }

  .meteor:nth-child(3) {
    top: 30%;
    left: 30%;
    animation-delay: 2s;
  }

  .meteor:nth-child(4) {
    top: 40%;
    left: 40%;
    animation-delay: 3s;
  }

  .meteor:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 4s;
  }

  .meteor:nth-child(6) {
    top: 60%;
    left: 60%;
    animation-delay: 5s;
  }

  .meteor:nth-child(7) {
    top: 70%;
    left: 70%;
    animation-delay: 6s;
  }

  .meteor:nth-child(8) {
    top: 80%;
    left: 80%;
    animation-delay: 7s;
  }

  .meteor:nth-child(9) {
    top: 90%;
    left: 90%;
    animation-delay: 8s;
  }

  @keyframes meteor {
    0% {
      transform: translateY(-100%) rotate(45deg);
      opacity: 1;
    }
    100% {
      transform: translateY(100%) rotate(45deg);
      opacity: 0;
    }
  }
</style>

<div class="meteor"></div>
<div class="meteor"></div>
<div class="meteor"></div>
<div class="meteor"></div>
<div class="meteor"></div>
<div class="meteor"></div>
<div class="meteor"></div>
<div class="meteor"></div>
<div class="meteor"></div>